jquery close popup when click outside

56

jquery close popup when click outside -

$(document).click(function(e){

   if($(e.target).closest('#popupdivID').length != 0) return false;
   $('#popupdivID').hide();
});

Comments

Submit
0 Comments